<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <table style="margin: auto"   border="1">
            <tr>
                <th>产品id</th>
                <th>产品类型id</th>
                <th>产品名称</th>
                <th>产品所在地址</th>
                <th>产品所有者</th>
                <th>产品单位</th>
                <th>产品价格</th>
                <th>产品数量</th>
                <th>其他信息</th>
                <th>操作</th>
            </tr>
            <tr th:each="pro : ${prolist}">
                <td th:text="${pro.productId}"></td>
                <td th:text="${pro.productTypeId}"></td>
                <td th:text="${pro.productName}"></td>
                <td th:text="${pro.productAddr}"></td>
                <td th:text="${pro.productOwner}"></td>
                <td th:text="${pro.unit}"></td>
                <td th:text="${pro.price}"></td>
                <td th:text="${pro.number}"></td>
                <td th:text="${pro.otherInfo}"></td>
                <td>
                    <form action="proupdate" method="post">
                        <input type="hidden" name="proid" th:value="${pro.productId}"><input
                            type="submit" class="but" value="修改">
                    </form>
                    <form action="deletePro" method="post">
                        <input type="hidden" name="proid" th:value="${pro.productId}"><input
                            type="submit" class="but" value="删除">
                    </form>
                </td>
            </tr>
        </table>
        <form action="proinsert" method="post">
            <input type="submit" value="增加" style="margin-left: 580px">
        </form>
    </div>
</body>
</html>